/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package com.crmapi.controller;

import com.crmapi.pojo.Job;
import com.crmapi.pojo.Result;
import com.crmapi.service.JobService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>Project: CRMSystem - JobController</p>
 * <p>Powered by yzc On 2023-11-16 19:55:05</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Slf4j
@Api(tags = "岗位管理")
@RestController
@RequestMapping("/api_v1.0")
public class JobController {

    @Autowired
    JobService jobService;
    @GetMapping("/job/queryJob")
    public Result queryJob(String deptId){
       List<Job> jobList = jobService.queryJob(deptId);
       log.info("根据部门id：{}，查找对象的岗位",deptId);
       return Result.success(jobList);
    }
}
